package com.zhouyu.commonapi.resbody;

import org.springframework.util.Assert;

/**
 * 自定义断言类
 */
public class BussiAssert extends Assert {

    /**
     * 断言自定义异常
     * @param responseEnum 自定义异常枚举
     * @return 自定义异常
     */
    public static BusinessException  assertBussiException(ResponseEnum responseEnum){
        throw  new BusinessException(responseEnum);
    }

}
